//
//  HTPopView.h
//  Study
//
//  Created by meet on 14-3-6.
//  Copyright (c) 2014年 MEETStudio. All rights reserved.
//

#import <UIKit/UIKit.h>

extern NSInteger const kHTPopViewPhoneOverFiveItemHeight;
extern NSInteger const kHTPopViewPhoneBelowFiveItemHeight;

@class HTPopView;

@protocol HTPopViewDelegate <NSObject>

@required;
- (void)popView:(HTPopView *)popView _itemHasClicked:(NSInteger)itemIndex;

@optional;
- (void)popView:(HTPopView *)popView _titleForTheClickedItem:(NSString *)title;

@end

@interface HTPopView : UIView

@property (nonatomic, weak) id<HTPopViewDelegate> delegate;

//+ (id)popViewWithStringArray:(NSArray *)array;
+ (id)popViewWithStringArray:(NSArray *)array _origin:(CGPoint)origin;
+ (id)popView;
+ (id)dismiss;
- (void)dismiss;

@end
